Maintaining a communication path from a host to a storage subsystem in a network

ABSTRACT

Provided are a method, system, computer storage device, and storage area network for maintaining a communication path from a host to a storage subsystem in a network. A storage subsystem controls data transfer and access to a storage devices in a network, wherein the storage subsystem is coupled to a switch and the switch is coupled to a host in the network. A topological storage is coupled to the host, the switch and the storage subsystem, for storing a topological coupling relationship between the host and the switch and a topological coupling relationship between the switch and the storage subsystem. In response to determining a failed path between the storage subsystem and the switch coupled to the storage subsystem, the storage subsystem determines a first port on the storage subsystem in the failed path. The storage subsystem determines from the topology storage the topological coupling relationship between the host and the switch and the topological coupling relationship between the switch and the storage subsystem. The storage subsystem redirects, based on the topological coupling relationships, a message sent to the first port of the storage subsystem to an operational second port in the storage subsystem coupled to the switch.

CROSS-REFERENCE TO RELATED FOREIGN APPLICATION

This application is a non-provisional application that claims prioritybenefits under Title 35, Unites States Code, Section 119(a)-(d) fromChinese Patent Application entitled “KEEPING A COMMUNICATION PATH SMOOTHIN A STORAGE AREA NETWORK” by Shu YANG, Lei CHEN, and Dong Hai YU,having Chinese Patent Application Serial No. CN201010192361.2, filed onMay 31, 2010, which application is incorporated herein by reference inits entirety.

BACKGROUND

1. Field of the Invention

The present invention relates to a method, system, computer storagedevice, and storage area network for maintaining a communication pathfrom a host to a storage subsystem in a network.

2. Related Art

A Storage Area Network (SAN) is a high speed communication network or asubnetwork, aiming to provide data transfer between a server and astorage system. As a solution for configuring networked storage, SANestablishes coupling between a server and a storage device through adedicated Fiber Channel switch, and the simplest coupling is aconnection relationship. SAN allows real isolation of the storage devicefrom the server, such that storage becomes a resource that can be sharedamong all servers. The storage device in SAN is one or more disk devicesfor storing computer data. These disks generally refer to a disk array,which is also called a storage subsystem. SAN allows cooperation betweenrespective storage subsystems without a dedicated intermediate server.The interfaces of SAN generally include SAS, SATA, SCSI, iSCSI,FICON/ESCON, and Fiber Channel (FC).

FIG. 1 schematically illustrates a block diagram of the architecture ofSAN. According to FIG. 1, a plurality of host servers are coupled to adisk array through a Fiber Channel switch. The Fiber Channel coupling isa high bandwidth backbone to satisfy a sharing storage environment inSAN (connectors like a relay network possibly exist there between, whichare not illustrated in FIG. 1). A Fiber Channel has become an industrialstandard for SAN interfaces. In the Fiber Channel, a host bus adaptor(HBA) card is a physical connection device between an I/O channel insidea host server and an I/O channel of a storage system. The most commonI/O channels inside a server are PCI series and Sbus, while an HBA cardfunctions to convert data transfer from an internal channel protocol PCIor Sbus to a Fiber Channel protocol. With an HBA card inserted, a hostserver or storage server may be coupled to a disk supporting a FiberChannel via a Fiber Channel switch. All communications are performed viathe HBA card at the host server, the Fiber Channel switch, and acorresponding Fiber Channel port on the storage device. A port (N port)of the host server is generally coupled to a port (F port) of the FiberChannel switch and the port (F port) of the Fiber Channel switch iscoupled to a port (N port) of a storage device via Fiber Channel so asto form a physical data link. However, Fiber Channel protocol criteriaallow one N port (N_Port) to obtain a plurality of FC IDs from a FiberChannel fabric, such that it is possible to establish a plurality ofindependent logic data links between a node and a Fiber Channel switch.In SAN, servers at different platforms may access the same storagedevice or a plurality of storage devices. SAN enables storage devicesnot to be affiliated to a certain server any more, but to be directlyconnected to the network to form a storage area network, therebyimproving the utilization efficiency of storage. Storage controllers ofthe storage subsystem in FIG. 1 control data transfer and access on thestorage device and are generally divided into two parts: a front end anda back end. The front end of the storage controller is to communicatewith a host, a Fiber Channel switch, or other device via one or moreports, while the back end is for inter-communication with the disk arrayunder its management. To improve performance and reliability, a storagesubsystem may have one or more storage controllers.

As illustrated in FIG. 1, each host server is coupled to the disk arrayvia a single physical path; therefore, an error of single-point couplingfailure may easily occur.

A multi-path input/output (MPIO) solution establishes a backup physicaltransfer path between a server and a storage device using redundancycomponents (an adaptor, a fiber cable, and a switch, etc.). If one ormore of these components fail and cause the path to be unavailable,multi-path control software may leverage the backup path to guaranteethe accessibility of an application to its data.

FIG. 2 a illustrates a simplified diagram of the multi-path solution anda problem existing in this solution. In the solution, ports 1 and 2 onthe HBA card of the host server are connected to ports 5 and 6 on theFiber Channel switch, respectively, while ports 1 and 2 on the FiberChannel switch are connected to port 1 on the HBA card and port 2 on theHBA card of the storage subsystem, respectively. Suppose port 1 on theHBA card of the host server inter-communicates with port 1 on the HBAcard of the storage subsystem, port 2 on the HBA card of the host serverinter-communicates with port 2 on the HBA card of the storage subsystem(generally, it is implemented via zones in a Fiber network management),and the host server comprises an MPIO module provided by a manufacturer.During the process of active/passive I/O data transfer, if there is aproblem with primary path a, physical links still exist from port 1 onthe HBA card of host server to port 5 and from port 1 of the FiberChannel switch and to port 1 of the HBA card on the storage subsystem.The existing MPIO may also perform communication between the host serverand the storage subsystem, thereby realizing enhanced storage redundancyand dynamic I/O load balance.

However, if there are problems with both primary path a and path b, thenthe existing MPIO module would be unable to handle this situation; as aresult, the communication between the host server and the storagesubsystem will be completely disconnected.

FIG. 2 b illustrates another example of a problem existing in themulti-path solution. In this solution, port 1 and port 2 of the HBA atthe host server are connected to port 5 and port 6 of the Fiber Channelfabric, respectively, and the host can only inter-communicate with port1 of the HBA at the storage subsystem via port 1 of the Fiber Channelfabric. If there is a problem path a, the existing MPIO module would beunable to handle this situation; as a result, the communication betweenthe host server and the storage subsystem will be completelydisconnected.

SUMMARY

Therefore, a method and a system are needed, which can maintaincommunication between a host server and a storage subsystem in the abovecircumstances, thereby improving the communication redundancy of SAN.

According to one embodiment, there is provided a storage area network,at least comprising a host server, a Fiber Channel switch, and a storagesubsystem, wherein the Fiber Channel switch is coupled to the hostserver and the storage subsystem, respectively, the storage subsystemfurther comprising:

-   -   a topological storage coupled to the host server, the Fiber        Channel switch and the storage subsystem, respectively, for        storing a topological coupling relationship between the host        server and the Fiber Channel switch and a topological coupling        relationship between the Fiber Channel switch and the storage        subsystem;    -   wherein the storage subsystem further comprises a storage port        management module for:        -   in response to a coupling path failure that occurs between            the storage subsystem and the Fiber Channel switch coupled            to the storage subsystem, obtaining a port, having a            failure, on the storage subsystem, the port being a first            port;        -   obtaining from the topology storage the topological coupling            relationship between the host server and the Fiber Channel            switch and the topological coupling relationship between the            Fiber Channel switch and the storage subsystem; and        -   redirecting, based on the topological coupling            relationships, a message sent to the first port of the            storage subsystem to another port coupled to the Fiber            Channel switch in the storage subsystem.

According to another embodiment, there is provided a method of keeping acommunication path smooth in a storage area network, wherein the storagearea network at least comprises a host server, a Fiber Channel switch,and a storage subsystem, the Fiber Channel switch being coupled to thehost server and the storage subsystem, respectively, the methodcomprising:

-   -   in response to a coupling path failure that occurs between the        storage subsystem and the Fiber Channel switch coupled to the        storage subsystem, obtaining a port, having a failure, on the        storage subsystem, the port being a first port;    -   obtaining a topological coupling relationship between the host        server and the Fiber Channel switch and a topological coupling        relationship between the Fiber Channel switch and the storage        subsystem; and    -   redirecting, based on the topological coupling relationships, a        message sent to the first port of the storage subsystem to        another port coupled to the Fiber Channel switch in the storage        subsystem.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objectives, features and advantages of the presentinvention will become more apparent through more detained description ofthe preferred embodiments of the present invention as illustrated in thedrawings, where like reference signs typically represent the samecomponents in the preferred embodiments of the present invention.

FIG. 1 schematically illustrates a block diagram of the architecture ofSAN;

FIGS. 2 a and 2 b illustrate two simplified diagrams of multi-pathsolutions and the problems existing therein;

FIG. 3 schematically illustrates a kind of Fiber Channel zoning;

FIG. 4 schematically illustrates a storage area network according to oneembodiment of the present invention;

FIG. 5 schematically illustrates a flowchart of a method of keepingcommunication path smooth in a storage area network;

FIG. 6 illustrates a specific embodiment of step S504 of FIG. 5; and

FIG. 7 illustrates another specific embodiment of step S504 of FIG. 5.

DETAILED DESCRIPTION

Hereinafter, the preferred embodiments of the present invention will bedescribed in more detail with reference to the accompanying drawingswhere the preferred embodiments of the present invention areillustrated. However, the present invention may be implemented invarious manners and should not be understood as being limited by theembodiments depicted herein. On the contrary, these embodiments areprovided to make the present invention much clearer and more completeand to completely show the scope of the present invention to the skilledin the art.

During Fiber Channel communication between a server and a storagesubsystem, a transmit frame comprises address identifiers that identifya transmit port address (N port) of a host and a receiving port (N port)address of the storage subsystem. The N port address is unique in anetwork area of a Fiber Channel switch. Data transfer between devicesnodes is based on the N port address.

In implementation of a storage network, the Fiber Channel switchprovides automatic (dynamic) address assignment to all Fiber Channelswitch ports (F ports) during the initialization process. During thelogon process from the host server N port to the Fiber Channel switch,the N port obtains a corresponding Fiber Channel switch port address forthe first time. Because two N ports must register with each other beforedata transfer, such N port registration allows two N ports to establisha session for exchanging definitions and service parameters. Theintercommunication and visibility between devices inside the FiberChannel switch are defined through Fiber Channel zoning. By FiberChannel zoning, a certain port of a host is allowed only to interconnectwith one or several ports on the storage device; meanwhile, the sameport may exist in different zones to access different devices. A memberof each zone may be WWN of the port or a port number on the FiberChannel switch. A zone set, also called zone configuration, comprisesone or more zones. Each Fiber Channel fabric may have a plurality ofzone configurations, but only one is effective in determining thecurrent access policy.

FIG. 3 schematically illustrates an embodiment of Fiber Channel zoning.In the example of FIG. 3, three WWPN-based zones form a zone set, i.e.,zone 1, zone 2, and zone 3; the three zones may be in the same validzone configuration. Zone 1 defines one port of the host server to portson two different storage systems, where the port at the host side isalso called an initiator or transmitting port, while the ports of thestorage device available for the host to access are also called targetsor receiving ports; and an initiator and a target form a path.

When a host server logs on to the Fiber Channel server, it will registeritself to a name server of the Fiber Channel switch. The Fiber Channelname server is responsible for the directory information for the devicesthat are coupled to the Fiber Channel switch, and maintains the name andaddress information for the devices that are coupled to the FiberChannel switch in a complex and dynamic environment. The name servercomprises all coupled devices and their relevant attributes, forexample, type (N or NL), class of service, port address (portidentifier), unique port name (Port WWN), unique node name (Node WWN),FC-4 supported type, and device symbol name (symbolic port name). Thehost server may query all devices in the Fiber Channel fabric throughthe name server of a Fiber Channel switch. The name server will respondto the devices by simulating a normal N port. Although the name serverknows all devices in the Fiber Channel fabric, it will not tell all ofthem to the inquirer but only returns as a query result the devices thatbelong to the same zone as the host, while other devices not in the zonewill be hidden by the name server so that the host server will not knowexistence of these devices.

The NPIV (N_Port ID Virtualization) technology is used to improve thecommunication redundancy of a SAN, which was initially implemented byInternational Business Machines Corporation and Emulex Corporation ontheir mainframes and then defined by T11 Fiber Channel Workgroup in theInternational Committee for Information Technology (INCITS) as a portionof Fiber Channel Link Services (FC-LS) standards. Based on thisprotocol, the connection port for coupling the host side to the FiberChannel switch, i.e., one N port, may be virtualized into a plurality ofN_Port IDs on the same physical port. The formulation of NPIV isinitially designed for a virtualization environment such that differentvirtual machines may correspond to different N_Port IDs so as toseparate the coupling of different virtual machines with the SANenvironment, thereby improving the flexibility and security of thenetwork. Each virtual machine uses different WWPN to register with theFiber Channel fabric through a shared physical N port and to obtain anindependent Fiber Channel address. Different Fiber Channel fabricregistrations mean each virtual machine may guarantee its independentzoning, security, and transfer management.

In the NPIV mode, N port may obtain different addresses from theregistration server through an FDISC command (including extra virtualnode and port WWN information) to thereby establish a plurality ofindependent virtual links. After finishing the Fiber Channel fabricregistration service, each N port (including virtual N port) willcontinuously perform an N port registration once with each N port thatis to communicate with the former N port in the network, withcommunication service parameters being exchanged.

The NPIV technology may be first employed to improve an existing MPIOmodule at the host side, such that the existing MPIO module implementsfunctions of port virtualization and migration using the NPIV protocol.In the scenario of FIG. 2 a, when port 2 of the host server has afailure in a relevant physical link, other port 3 is virtualized on port1 of the host server that is in the same zone as port 2 by the MPIOmodule supporting the NPIV protocol, and then communicates with thestorage subsystem via the port 3. In this way, when the primary path afails, the MPIO module supporting the NPIV protocol can automaticallycreate an additional virtual path for I/O transmission. Based ondifferent I/O transmission policies, this additional virtual path maybecome a “backup path” for the original backup path. Once the failure atlocation b causes the original backup path suspending serving, thevirtual “backup path” may take the place and perform I/O switch. Inother words, the MPIO module at the host side may, in response to acoupling failure between a certain port of the host server and a port ofthe Fiber Channel switch, a certain virtual port is virtualized on otherport on the host server coupled to the same Fiber Channel fabric as thecertain port, the certain virtual port being equivalent to the certainport; and the certain virtual port on the host is used to communicationwith other port of the Fiber Channel switch.

Further, even the improved MPIO cannot solve the problem that both patha and path b have failures as illustrated in FIG. 2 a or the problem ofinability to communicate between the host server and the storagesubsystem caused by failure of path a as illustrated in FIG. 2 b. Thisinvention finds the cause for these problems through analysis. That is,although the MPIO module at the host server side may control a pluralityof paths for data transfer, the number of valid redundant paths mustdrop with occurrence of the failure of physical links. Particularly atthe storage subsystem side, if a physical link directly associated witha port fails, for example, the physical link between the port and theFiber Channel switch fails, the storage subsystem will not make activeadjustment to the invalidity of the path so as to cooperate with thehost for providing an additional path. Thus, it is necessary to furtherimprove the traditional MPIO solution so as to improve the redundancyand load balance for the communication between a host server and astorage subsystem in the overall SAN environment.

In the prior art, a storage subsystem comprises some monitor programs.Through the interfaces of these programs, it may be obtained whethersome kinds of coupling failures occur between the storage subsystem andthe Fiber Channel switch coupled to the storage subsystem, or a monitormodule may be separately developed in the storage subsystem, in order tomonitor whether there are coupling failures between the storagesubsystem and the Fiber Channel switch coupled to the storage subsystem.Preferably, the monitor module may monitor statistical informationregarding the I/O transmission and state of each storage port.

In embodiments of this invention, a storage port management module isfurther introduced in the storage subsystem. This module may use theNPIV technology to perform storage subsystem port virtualization andport migration.

FIG. 4 schematically illustrates a storage area network according to oneembodiment of the present invention, which comprises a host server 301,a Fiber Channel switch 302, and a storage subsystem 303, where the FiberChannel switch 302 is connected to the host server 301 and the storagesubsystem 303 respectively, and the system further comprises:

A topology storage 304 connected to the host server 301, the FiberChannel switch 302, and the storage subsystem 303, respectively, forstoring a topological coupling relationship between the host server 301and the Fiber Channel switch 302 and a topological coupling relationshipbetween the Fiber Channel switch 302 and the storage subsystem 303;wherein the storage subsystem 303 further comprises a storage portmanagement module 305 that, in response to a coupling path failurebetween the storage subsystem and the coupled Fiber Channel switch,obtains a port, having a failure, on the storage system, the port beinga first port, obtains from the topology storage the topological couplingrelationship between the host server and the Fiber Channel switch andthe topological coupling relationship between the Fiber Channel switchand the storage subsystem, and redirects, based on the topologicalcoupling relationships, a message sent to the first port of the storagesubsystem to another port coupled to the Fiber Channel switch in thestorage subsystem.

In the above technical solution, the topological coupling relationshippreferably further comprises zones of the Fiber Channel switch. Thetopological coupling relationship may be expressed in a plurality ofmanners. For example, it may be expressed by a data structure such as alinked list or an array, stored as a file or in a database. Thetopological storage 304 may be a separate storage device, for example, adisk, a magnetic tape, a CD, etc., or a storage module inside the FiberChannel switch 302, or a storage module in the storage subsystem, etc.

In one embodiment, the topological storage 304 is disposed in a nameserver and/or management server of the Fiber Channel switch 302. Thename and address information regarding the devices coupled to the FiberChannel switch as already stored in the name server is exactly atopological coupling relationship between the host server 301 and theFiber Channel switch 302 and a topological coupling relationship betweenthe Fiber Channel switch 302 and the storage subsystem 303. However,when a topological coupling relationship as stored in the name serveritself has a coupling failure, relevant device information will becleared, and the coupling relationship will lose accordingly. However,an additional topological server may be defined in the name server tostore such relevant information, and this additional topological serverthereby becomes the topological server 304. In addition, the managementserver, which may provide more comprehensive information regardingcoupling relationship beyond the limitation scope of the zone, may alsocreate the topological storage 304. Meanwhile, the management server mayquery relevant attributes for a specific coupling device.

In one embodiment, the MPIO module supporting NPIV criteria on the hostserver further comprises a host registration module, for registeringhost server port information with the Fiber Channel fabric to establisha corresponding topological relationship, which, preferably, furtherregisters virtualized port information; preferably, the MPIO module mayalso replace the port experiencing physical link invalidity with anadditional port virtualized on the host server port based on a definedmigration policy, and establishes a virtual logical link with the FiberChannel switch.

In another embodiment, the storage subsystem also supports the NPIVprotocol to virtualize a first port coupled to the Fiber Channel switchon the storage subsystem into a first virtual port equivalent to thefirst port; additionally, the storage subsystem supporting NPIV may alsocomprise a storage subsystem registration module for registering thefirst port coupled to the Fiber Channel switch on the storage subsystemand the first virtual port as devices coupled to the Fiber Channelswitch, so as to establish a corresponding topological relationship. Inthis way, the topological coupling relationship for the overall storagearea network is stored in the name server and/or management server ofthe Fiber Channel switch. When the topological coupling relationship ofthe network changes, the host registration module and the storagesubsystem registration module must timely report updates to a relevantserver of the Fiber Channel switch. Additionally, the topological serverwill return interfaces of one or more certain ports of the host orstorage server in the same zone in response to querying all devices inthe Fiber Channel fabric.

In one embodiment, the storage port management module 305 redirects,based on the above coupling relationship, a message sent to a port,having a coupling path failure, in the storage subsystem to another portcoupled to the Fiber Channel switch in the storage subsystem,specifically comprising: first, the storage port management module 305,based on the zone where the first port is located in the topologiccoupling relationship, obtains a host whose communication is affectedand a host port, the host port being a second port; then, obtaining,based on the topological coupling relationship, a third port coupled tothe Fiber Channel switch, having no communication failure, in thestorage subsystem; next, instructing the topological storage to placethe second port and the third port in the same zone; finally,instructing the MPIO module to update path information, i.e., modifyinga storage subsystem receiving port (N port) for a transmit frametransmitted to the storage subsystem in the host whose communication isaffected to the third port.

In a further embodiment, the storage port management module 305redirects a message sent to a port, having a coupling path failure, inthe storage subsystem to another port coupled to the Fiber Channelswitch in the storage subsystem, specifically comprising: first, thestorage port management module 306, based on the zone where the firstport is located in the topological coupling relationship, obtains a hostwhose communication is affected and a host port, the host port being asecond port; then, obtaining a third port, coupled to the Fiber Channelswitch, having no communication failure, in the storage subsystem basedon the topological coupling relationship; obtaining other port coupledto the same Fiber Channel fabric with the second port on the affectedhost, this other port being a fourth port; then instructing thetopological storage to determine other port of a storage subsystem endassociated with the fourth port based on the coupling relationship ofthe fourth port, this other port being a fifth port; further instructingthe topological storage to establish a zone with the second port and thethird port; finally, instructing the MPIO module to modify the storagesubsystem receiving port (N port) for a transmit frame sent to the firstport of the storage subsystem in the host whose communication isaffected into the third port.

In one embodiment, a plurality of third ports having no communicationfailure may exist. According to such embodiment, any one of thequalified ports is selected as the third port or a port with minimaltraffic is selected as the third port; in another embodiment, in orderto maintain the current host, storage subsystem, and configurationsdefined on the Fiber Channel fabric, the storage subsystem supportingNPIV may also be virtualized out a port on the selected port (anyqualified port or a port with minimal traffic), this virtualized portbeing the third port.

Further embodiments concern a method of keeping a communication pathsmooth in a storage area network, with a flowchart illustrated in FIG.5, wherein the storage area network at least comprises a host server, aFiber Channel switch, and a storage subsystem, the Fiber Channel switchbeing coupled to the host server and the storage subsystem,respectively. The method comprises:

At step S501, storing a topological coupling relationship between thehost server and the Fiber Channel switch and a topological couplingrelationship between the Fiber Channel switch and the storage subsystem.This storing step is an optional step and not essential, because thetopological coupling relationship might be pre-stored or deployed in arelevant device in other manner. At step S502, in response to a couplingpath failure between the storage subsystem and the coupled Fiber Channelswitch, obtaining a port, having a failure, on the storage subsystem,the port being a first port; at step S503, obtaining a storedtopological coupling relationship between the host server and the FiberChannel switch and a stored topological coupling relationship betweenthe Fiber Channel switch and the storage subsystem; at step S504,redirecting a message transmitted to the first port of the storagesubsystem to another port that is coupled to the Fiber Channel switch inthe storage subsystem.

In a preferred embodiment, in response to a coupling failure between acertain port of the host server and a port of the Fiber Channel switch,a certain virtual port is virtualized on other port of the host servercoupled to the same Fiber Channel fabric as the certain port, thecertain virtual port being equivalent to the certain port; the certainvirtual port on the host is used to communicate with other port of theFiber Channel switch.

For monitoring a port failure, on one hand, it is possible to directlymonitor whether a coupling failure occurs between the storage subsystemand the Fiber Channel switch coupled to the storage subsystem. This stepmay be performed before step S502.

In one embodiment, the storage subsystem supports the NPIV protocol, andthe method as illustrated in FIG. 5 further comprises the followingsteps: virtualizing a first port coupled to the Fiber Channel switch onthe storage subsystem into a first virtual port equivalent to the firstport; and registering the first port coupled to the Fiber Channel switchof the storage subsystem and the first virtual port into devices coupledto the Fiber Channel switch. These two steps are performed after stepS502, and the first virtual port is another port.

FIG. 6 illustrates a specific embodiment of step S504 of FIG. 5.According to FIG. 6, at step S601, a host whose communication isaffected and a host port are obtained based on the zone where the firstport is located in the topological coupling relationship, this host portbeing a second port; at step S602, a port, coupled to the Fiber Channelswitch, having no communication failure, in the storage subsystem isobtained based on the topological coupling relationship, this port beinga third port; at step S603, the topological storage is instructed to putthe second port and the third port into one zone; at step S604, the MPIOmodule is instructed to modify a storage subsystem receiving port for atransmit frame sent to the first port of the storage subsystem in thehost whose communication is affected to the third port. Here, if it isobtained, based on the topological coupling relationship, that aplurality of ports, having no communication failure, in the couplingwith the Fiber Channel switch exist in the storage subsystem, any portor the port with minimal traffic may be selected as the third port; thethird port may also be selected based on other policy.

FIG. 7 illustrates another specific embodiment of step S504 of FIG. 5.According to FIG. 7, at step S701, a host whose communication isaffected and a host port are obtained based on the zone where the firstport is located in the topological coupling relationship, this host portbeing a second port; at step S702, a third port, coupled to the FiberChannel switch, having no communication failure, in the storagesubsystem is obtained based on the topological coupling relationship; atstep S703, other port that is coupled to the same Fiber Channel fabricas the second port on the affected host is obtained based on thetopological structure, this port being a fourth port; at step S704, thetopology storage is instructed to determine, based on the topologicalrelationship of the fourth port, other port of the storage subsystemassociated with the fourth port, this other port being a fifth port; atstep S705, the topological storage is instructed to create a zone withthe second port and the third port (but preferably excluding the fifthport); at step S706, the MPIO module is instructed to modify a storagesubsystem receiving port (N port) for a transmit frame sent to the firstport of the storage subsystem in the host whose communication isaffected to the third port.

In an embodiment, if it is obtained through the topological couplingrelationship that a plurality of ports having no communication failurein the coupling with the Fiber Channel switch exist in the storagesubsystem, any port may be selected as the third port, or the port withminimal traffic is selected as the third port.

In another embodiment, the storage subsystem may also support the NPIVprotocol. If it is obtained through the topological couplingrelationship that a plurality of ports having no communication failurein the coupling with the Fiber Channel switch exist in the storagesubsystem, any port may be selected as the third port, or the port withminimal traffic is selected as the third port; and a first virtual portis virtualized at the selected port, the first virtual port being thethird port.

Although the exemplary embodiments of the present invention aredescribed herein with reference to the drawings, it should be understoodthat the present invention is not limited to these accurate embodiments,and a person of normal skill in the art can make various modificationsto the embodiments without departing from the scope and principles ofthe present invention. All such variations and modifications areintended to be included in the scope of the present invention as limitedin the appended claims.

Moreover, based on the above description, the skilled in the art wouldappreciate that the present invention may be embodied as an apparatus, amethod, or a computer program product. Thus, the present invention maybe specifically implemented in the following manners, namely, completehardware, complete software (including firmware, resident software,microcode, etc), or a combination of software part and hardware part asgenerally called “circuit,” “module,” or “system” in this text. Further,the present invention may adopt a form of computer program product asembodied in any tangible medium of expression, wherein the mediumcomprises computer-available program code.

Any combination of one or more computer-available or computer-readablemediums may be used. The computer-available or computer-readable mediummay be for example, but not limited to, electrical, magnetic, optical,electromagnetic, infrared, or semiconductor system, means, device, orpropagation medium. More specific examples (non-exhaustive list) of thecomputer-readable medium comprise the following: an electric connectionhaving one or more leads, a portable computer magnetic disk, hard disk,random access memory (RAM), read-only memory (ROM), erasableprogrammable read-only memory (EPROM or flash disk), optical FiberChannel, portable compact disk read-only memory (CD-ROM), opticalstorage device, a transmission medium for example supporting internet orintranet, or a magnetic storage device. It should be noted that thecomputer-available or computer readable medium may even be a paper orother suitable medium printed with a program thereon, because theprogram may be obtained electronically by electrically scanning suchpaper or other medium, and then compiled, interpreted or processed in asuitable manner, and if necessary, stored in a computer memory. In thecontext of the present document, a computer-available orcomputer-readable medium may be any medium containing, storing,communicating, propagating, or transmitting a program available for aninstruction execution system, apparatus or device, or associated withthe instruction execution system, apparatus, or device. Acomputer-available medium may comprise a data signal contained in a baseband or propagated as a part of carrier and embodying acomputer-available program code. A computer-available program code maybe transmitted by any suitable medium, including, but not limited to,radio, wire, fiber cable, or RF, etc.

A computer program code for executing operation of the present inventionmay be complied by any combination of one or more program designlanguages, the program design languages including object-orientedprogram design languages, such as Java, Smalltalk, C++, etc, as well asconventional procedural program design languages, such as “C” programdesign language or similar program design language. A program code maybe completely or partly executed on a user computer, or executed as anindependent software package, partly executed on the user computer andpartly executed on a remote computer, or completely executed on a remotecomputer or server. In the latter circumstance, the remote computer maybe connected to the user computer through various kinds of networks,including local area network (LAN) or wide area network (WAN), orconnected to external computer (for example using an internet serviceprovider via Internet).

Further, each block in the flow charts and/or block diagrams andcombination of each block in the flow charts and/or block diagrams ofthe present invention may be implemented by computer programinstructions. These computer program instructions may be provided to aprocessor of a utility computer, a dedicated computer or otherprogrammable data processing apparatus, to thereby generating a machinesuch that these instructions executed through the computer or otherprogrammable data processing apparatus generate means for implementingfunctions/operations prescribed in the blocks of the flow charts and/orblock diagrams.

These computer program instructions may also be stored in acomputer-readable medium capable of instructing the computer or otherprogrammable data processing apparatus to work in a particular manner,such that the instructions stored in the computer-readable mediumgenerate a product including instruction means for implementing thefunctions/operations prescribed in the flow charts and/or blockdiagrams.

The computer program instructions may also be loaded on a computer orother programmable data processing apparatus, such that a series ofoperation steps are implemented on the computer or other programmabledata processing apparatus, to generate a computer-implemented process,such that execution of the instructions on the computer or otherprogrammable apparatus provides a process of implementing thefunctions/operations prescribed in the blocks of the flow charts and/orblock diagrams.

The flowcharts and block in the figures illustrate the system, methods,as well as architecture, functions and operations executable by acomputer program product according to the embodiments of the presentinvention. In this regard, each block in the flowcharts or block mayrepresent a module, a program segment, or a part of code, which containsone or more executable instructions for performing specified logicfunctions. It should be noted that in some alternative implementations,functions indicated in blocks may occur in an order differing from theorder as shown in the figures. For example, two blocks shownconsecutively may be performed in parallel substantially or in aninverse order. This depends on relevant functions. It should also benoted that each block in the block diagrams and/or flowcharts and acombination of blocks in the block diagrams and/or flowcharts may beimplemented by a dedicated hardware-based system for performingspecified functions or operations or by a combination of dedicatedhardware and computer instructions.

1. A system coupled to a switch, wherein the switch is coupled to a hostin a network including storage devices, comprising: a storage subsystemcontrolling data transfer and access to the storage devices in thenetwork; a topological storage coupled to the host, the switch and thestorage subsystem, for storing a topological coupling relationshipbetween the host and the switch and a topological coupling relationshipbetween the switch and the storage subsystem; a storage port managementmodule implemented in the storage subsystem to perform operationscomprising: in response to determining a failed path between the storagesubsystem and the switch coupled to the storage subsystem, determining afirst port on the storage subsystem in the failed path; determining fromthe topology storage the topological coupling relationship between thehost and the switch and the topological coupling relationship betweenthe switch and the storage subsystem; and redirecting, based on thetopological coupling relationships, a message sent to the first port ofthe storage subsystem to an operational second port in the storagesubsystem coupled to the switch.
 2. The system of claim 1, wherein thenetwork comprises a Storage Area Network, the switch comprises a FibreChannel switch, and the topological storage is located in a name serverand/or management server of the Fiber Channel switch.
 3. The system ofclaim 1, wherein the operations further comprise: virtualizing the firstport coupled to the switch on the storage subsystem into a first virtualport equivalent to the first port; and registering the first port andthe first virtual port as devices coupled to the switch, wherein thefirst virtual port is a port on the storage subsystem other than thefirst port.
 4. The system of claim 3, wherein the network comprises aStorage Area Network and the switch comprises a Fibre Channel switch,wherein the storage subsystem implements an NPIV protocol to perform thevirtualizing, and wherein the storage port management module includes astorage subsystem registration module for registering the first portcoupled to the Fiber Channel switch on the storage subsystem and thefirst virtual port as devices coupled to the Fiber Channel switch. 5.The system of claim 1, wherein the storage subsystem further comprises amonitor module for monitoring whether a coupling failure occurs betweenthe storage subsystem and the switch coupled to the storage subsystem.6. The system of claim 1, wherein redirecting, by the storage portmanagement module, based on the topological coupling relationships, amessage sent to the first port of the storage subsystem to another portin the storage subsystem coupled to the switch comprises: determining,based on a zone in which the first port is located in the topologicalcoupling relationship, a host whose communication is affected and asecond port of the host; obtaining, based on the topological couplingrelationship, a third port in the storage subsystem, having nocommunication failure, coupled to the switch; instructing thetopological storage to place the second port and the third port into onezone; instructing the host, whose communication is affected, to modify astorage subsystem receiving port for a transmit frame sent to the firstport of the storage subsystem to the third port.
 7. The system of claim6, wherein obtaining, based on the topological coupling relationship,the third port coupled to the switch comprises selecting one of thefollowing ports as the third port: any port; and a port with minimaltraffic.
 8. The system of claim 6, wherein the network comprises aStorage Area Network and the switch comprises a Fibre Channel switch,wherein the storage subsystem implements an NPIV protocol, whereinobtaining, based on the topological coupling relationship, the thirdport comprises selecting any port or a port with minimal traffic as theselected port, and virtualizing another virtual port at the selectedport, wherein the virtual port comprises the third port.
 9. A method,comprising: controlling, by a storage subsystem, data transfer andaccess to a storage devices in a network, wherein the storage subsystemis coupled to a switch and the switch is coupled to a host in thenetwork; providing a topological storage coupled to the host, the switchand the storage subsystem, for storing a topological couplingrelationship between the host and the switch and a topological couplingrelationship between the switch and the storage subsystem; in responseto determining a failed path between the storage subsystem and theswitch coupled to the storage subsystem, determining, by the storagesubsystem, a first port on the storage subsystem in the failed path;determining, by the storage subsystem, from the topology storage thetopological coupling relationship between the host and the switch andthe topological coupling relationship between the switch and the storagesubsystem; and redirecting, by the storage subsystem, based on thetopological coupling relationships, a message sent to the first port ofthe storage subsystem to an operational second port in the storagesubsystem coupled to the switch.
 10. The method of claim 9, wherein thenetwork comprises a Storage Area Network, the switch comprises a FibreChannel switch, and the topological storage is located in a name serverand/or management server of the Fiber Channel switch.
 11. The method ofclaim 9, further comprising: virtualizing, by the storage subsystem, thefirst port coupled to the switch on the storage subsystem into a firstvirtual port equivalent to the first port; and registering, by thestorage subsystem, the first port and the first virtual port as devicescoupled to the switch, wherein the first virtual port is a port on thestorage subsystem other than the first port.
 12. The method of claim 11,wherein the network comprises a Storage Area Network and the switchcomprises a Fibre Channel switch, wherein the storage subsystemimplements an NPIV protocol to perform the virtualizing and includes astorage subsystem registration module for registering the first portcoupled to the Fiber Channel switch on the storage subsystem and thefirst virtual port as devices coupled to the Fiber Channel switch. 13.The method of claim 9, wherein redirecting, by the storage subsystem,based on the topological coupling relationships, a message sent to thefirst port of the storage subsystem to another port in the storagesubsystem coupled to the switch comprises: determining, based on a zonein which the first port is located in the topological couplingrelationship, a host whose communication is affected and a second portof the host; obtaining, based on the topological coupling relationship,a third port in the storage subsystem, having no communication failure,coupled to the switch; instructing the topological storage to place thesecond port and the third port into one zone; instructing the host,whose communication is affected, to modify a storage subsystem receivingport for a transmit frame sent to the first port of the storagesubsystem to the third port.
 14. The method of claim 13, whereinobtaining, based on the topological coupling relationship, the thirdport coupled to the switch comprises selecting one of the followingports as the third port: any port; and a port with minimal traffic. 15.The method storage area network according to claim 13, wherein thenetwork comprises a Storage Area Network and the switch comprises aFibre Channel switch, wherein the storage subsystem implements an NPIVprotocol, wherein obtaining, based on the topological couplingrelationship, the third port comprises selecting any port or a port withminimal traffic as the selected port, and virtualizing another virtualport at the selected port, wherein the virtual port comprises the thirdport.
 16. The method of claim 9, wherein the network comprises a StorageArea Network and the switch comprises a Fibre Channel switch, furthercomprising: creating, by the host, a virtualized port using the NPIVprotocol in response to a coupling failure that occurs between one portof the host and one port of the Fiber Channel switch, wherein thevirtualized port in the host is coupled to the Fiber Channel switch, andwherein the virtualized port on the host is used to communicate with theFiber Channel switch.
 17. A computer storage device storing codeexecuted in a network comprising a host coupled to a switch, wherein theswitch is coupled to a storage subsystem controlling data transfer andaccess to storage devices in the network, wherein the code includesstorage subsystem code executed in the storage subsystem to performoperations, the operations comprising; accessing a topological storagecoupled to the host, the switch and the storage subsystem, for storing atopological coupling relationship between the host and the switch and atopological coupling relationship between the switch and the storagesubsystem; in response to determining a failed path between the storagesubsystem and the switch coupled to the storage subsystem, determining afirst port on the storage subsystem in the failed path; determining fromthe topology storage the topological coupling relationship between thehost and the switch and the topological coupling relationship betweenthe switch and the storage subsystem; and redirecting based on thetopological coupling relationships, a message sent to the first port ofthe storage subsystem to an operational second port in the storagesubsystem coupled to the switch.
 18. The computer storage device ofclaim 17, wherein the network comprises a Storage Area Network, theswitch comprises a Fibre Channel switch, and the topological storage islocated in a name server and/or management server of the Fiber Channelswitch.
 19. The computer storage device of claim 17, wherein theoperations further comprise: virtualizing the first port coupled to theswitch on the storage subsystem into a first virtual port equivalent tothe first port; and registering the first port and the first virtualport as devices coupled to the switch, wherein the first virtual port isa port on the storage subsystem other than the first port.
 20. Thecomputer storage device of claim 19, wherein the network comprises aStorage Area Network and the switch comprises a Fibre Channel switch,wherein the storage subsystem implements an NPIV protocol to perform thevirtualizing and includes a storage subsystem registration module forregistering the first port coupled to the Fiber Channel switch on thestorage subsystem and the first virtual port as devices coupled to theFiber Channel switch.
 21. The computer storage device of claim 17,wherein redirecting based on the topological coupling relationships, amessage sent to the first port of the storage subsystem to another portin the storage subsystem coupled to the switch comprises: determining,based on a zone in which the first port is located in the topologicalcoupling relationship, a host whose communication is affected and asecond port of the host; obtaining, based on the topological couplingrelationship, a third port in the storage subsystem, having nocommunication failure, coupled to the switch; instructing thetopological storage to place the second port and the third port into onezone; and instructing the host, whose communication is affected, tomodify a storage subsystem receiving port for a transmit frame sent tothe first port of the storage subsystem to the third port.
 22. Thecomputer storage device of claim 21, wherein obtaining, based on thetopological coupling relationship, the third port coupled to the switchcomprises selecting one of the following ports as the third port: anyport; and a port with minimal traffic.
 23. The computer storage deviceof claim 21, wherein the network comprises a Storage Area Network andthe switch comprises a Fibre Channel switch, wherein the storagesubsystem implements an NPIV protocol, wherein obtaining, based on thetopological coupling relationship, the third port comprises selectingany port or a port with minimal traffic as the selected port, andvirtualizing another virtual port at the selected port, wherein thevirtual port comprises the third port.
 24. The computer storage deviceof claim 17, wherein the network comprises a Storage Area Network andthe switch comprises a Fibre Channel switch, wherein the code furtherincludes host code executed in the host to perform: creating avirtualized port using the NPIV protocol in response to a couplingfailure that occurs between one port of the host and one port of theFiber Channel switch, wherein the virtualized port in the host iscoupled to the Fiber Channel switch, and wherein the virtualized port onthe host is used to communicate with the Fiber Channel switch.
 25. Astorage area network, comprising: a host; a Fiber Channel switch; and astorage subsystem controlling data transfer and access to storagedevices in the network, wherein the Fiber Channel switch is coupled withthe host and the storage subsystem, respectively; a topological storagecoupled to the host server, the Fiber Channel switch and the storagesubsystem, respectively, for storing a topological coupling relationshipbetween the host server and the Fiber Channel switch and a topologicalcoupling relationship between the Fiber Channel switch and the storagesubsystem; and wherein the storage subsystem further comprises a storageport management module for: in response to a coupling path failure thatoccurs between the storage subsystem and the Fiber Channel switchcoupled to the storage subsystem, obtaining a port, having a failure, onthe storage subsystem, the port being a first port; obtaining from thetopology storage the topological coupling relationship between the hostserver and the Fiber Channel switch and the topological couplingrelationship between the Fiber Channel switch and the storage subsystem;and redirecting, based on the topological coupling relationships, amessage sent to the first port of the storage subsystem to another portcoupled to the Fiber Channel switch in the storage subsystem.
 26. Thestorage area network of claim 25, wherein redirecting, by the storageport management module, based on the topological coupling relationships,a message sent to the first port of the storage subsystem to anotherport in the storage subsystem coupled to the switch comprises:determining, based on a zone in which the first port is located in thetopological coupling relationship, a host whose communication isaffected and a second port of the host; obtaining, based on thetopological coupling relationship, a third port in the storagesubsystem, having no communication failure, coupled to the switch;instructing the topological storage to place the second port and thethird port into one zone; instructing the host, whose communication isaffected, to modify a storage subsystem receiving port for a transmitframe sent to the first port of the storage subsystem to the third port.